package com.zed.api.games.answer.action;

import java.io.Serial;
import java.util.Arrays;
import java.util.List;

/**
 * 选择答案
 *
 * @author Zed
 */
public class ChooseAnswerAction extends AnswerAction {

    @Serial
    private static final long serialVersionUID = -7752149637530285568L;

    @Override
    public String getIdentifier() {
        return "choose-answer";
    }

    @Override
    public String getDescription() {
        return "选择答案";
    }

    @Override
    public List<String> getMustFillParameters() {
        return Arrays.asList("choose");
    }

    /**
     * 获取答案
     *
     * @return {@link String}
     */
    public String getChooseAnswer() {
        return this.getParameter("choose", String.class);
    }
}
